<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品栏目</title>
    <link rel="stylesheet" href="__CONTROL_TPL__/css/index.css">
    <script src="__CONTROL_TPL__/js/jquery-1.7.2.min.js"></script>
    <jquery/>
    <hdui/>
    <script  type="text/javascript">
        $(function(){
            $(document).ready(function(){
                $("#right .art-lisi table tbody tr").removeClass("row_bg");
                $("#right .art-lisi table tbody tr:even").addClass("row_bg");
            })            
        })
    </script>

</head>
<body>
    <div id="admin">                     
        <div id="right">
            
            <div class="M-articless">
                <div class="top_box">
                    <h3>商品栏目</h3>
                    <a class="add" href="{|U:'add'}" target="content" title='添加商品类型'></a>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <table>
                        <thead>
                            <tr>
                                <th style="width:80px">ID</th>
                                <th>商品栏目名称</th>                                   
                                <th  style="width:200px">操作</th>
                            </tr>
                        </thead> 

                        <tbody>
                            <list from="$field" name="$f">
                                <tr>
                                    <td>{$f.cid}</td>                                   
                                    <td>
                                        <if value="$f.level!=1">└</if>{$f.html}
                                        <if value="$f.pid==0"><strong>{$f.cname}</strong>
                                            <else>{$f.cname}
                                        </if>
                                    </td>
                                    <td class="caozuo">                                        
                                        <a href="{|U:'add',array('pid'=>$f['cid'],'level'=>$f['level'])}">添加子栏目</a> 
                                        | 
                                        <a href="">内容</a> 
                                        | 
                                        <a href="">编辑</a> 
                                        | 
                                        <a href="{|U:'del',array('cid'=>$f['cid'])}" onclick="return confirm('删除商品将删除商品的所有属性与规格');">删除</a>
                                    </td>
                                </tr>
                            </list>
                        </tbody> 

                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <!-- <div class="page1">
                                        {$page}
                                    </div> -->
                                </td>
                            </tr>
                        </tfoot>  
                    </table>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>